package com.yztc.orangeentertainment.ui.main.channalcontentfragment;

import android.content.Context;

import com.yztc.orangeentertainment.base.IModle;
import com.yztc.orangeentertainment.base.IPresenter;
import com.yztc.orangeentertainment.base.IView;
import com.yztc.orangeentertainment.bean.channalbean.ChannalTitle;
import com.yztc.orangeentertainment.bean.channalbean.InfoBean;
import com.yztc.orangeentertainment.bean.channalbean.ListBean;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import retrofit2.Call;

/**
 * Created by My on 2016/10/5.
 */
public class ChannalContentContact {
    public interface View extends IView {
        public void onChannalContentViewPageSucess(List<InfoBean> infoBeanList);
        public void onChannalContentViewPageFaild(String msg);
        public void setChannalContentRVSuccess(ArrayList<ListBean> listBeen);
        public void onChannalContentRVFaild(String msg);
    }
    public interface Modle extends IModle {
        public void getChannalContentViewPage(String type, Map<String,String> map,
                                              OnLoadChannalContentViewPageListener loadChannalListener,Context
                                                      context);
        public void getChannalContentViewPageFromDb(Call<ChannalTitle> call);
    }
    public interface Presenter extends IPresenter {
        public void getChannalContentFromNet(Context context,int id,int page);
        public void  getChannalContentFromDb();
    }
}
